for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// UnsupportedOperationException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const RuntimeException = require(path.join(__dirname, "RuntimeException.js"));
// :: BASIC SETUP
/**
* Thrown to indicate that the requested operation is not supported.
* @param {String} message - The message describing the <tt>UnsupportedOperationException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>UnsupportedOperationException</tt>.
* @augments RuntimeException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html
*/
const UnsupportedOperationException = function (message, code) {
RuntimeException.call(this, null, message, code);
};
// :: INHERITANCE
// set the RuntimeException 'class' as the parent in the prototype chain
UnsupportedOperationException.prototype = Object.create(RuntimeException.prototype);
UnsupportedOperationException.prototype.constructor = RuntimeException;
// :: PROTOTYPE
* The name used to identify an <tt>UnsupportedOperationException</tt>.
* @type {String}
* @default
UnsupportedOperationException.prototype.name = "UnsupportedOperationException";
// :: EXPORT
// export the UnsupportedOperationException 'class'
module.exports = UnsupportedOperationException;